#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <map>
using namespace std;

class Solution {
public:
    string formatString(string str, vector<char>& arg) {
        // write code here
        int len = str.size();
        int tmp = 0;
        int n = arg.size();
        string ret = "";
        for (int i = 0; i < len; i++)
        {
            if (str[i] != '%') ret += str[i];
            else if (str[i] == '%' && str[i + 1] == 's')
            {
                ret += arg[tmp++];
                i++;
            }
        }
        while (tmp < n)
        {
            ret += arg[tmp++];
        }
        return ret;
    }
};

int main() {
    return 0;
}